home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_gen_surfanim.cog < prev    next >
Text File  |  1999-11-15  |  874b  |  46 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_SurfAnim.cog
  4. #
  5. # Animates up to 4 surfaces at the same frame rate
  6. #
  7. # [YB]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message        startup        
  15.  
  16.     surface        surf0
  17.     surface        surf1
  18.     surface        surf2
  19.     surface        surf3
  20.     surface        surf4
  21.     surface        surf5
  22.  
  23.     float        fps=15.0        desc=playback_speed
  24.     
  25.     int            i                local
  26.     int         numSurfs=6      local
  27.     
  28. end
  29.  
  30. # ========================================================================================
  31.  
  32. code
  33.  
  34. startup:
  35.  
  36.     for (i = 0; i <= numSurfs; i = i + 1)
  37.         {
  38.             if (surf0[i] >= 0) SurfaceAnim(surf0[i], fps, 0x1);
  39.         }
  40.     return;
  41.  
  42. # ========================================================================================
  43.  
  44. end
  45.  
  46.